package org.com.FeignClient;

import Entity.OrderVoucher;
import org.com.FeignFallback.OrderFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "Service-Order",fallback = OrderFallback.class)
public interface OrderFeign {
    @GetMapping("/order/show")
    List<OrderVoucher> list();
}
